import request from '@/utils/request'

// 查询病例模板列表
export function listMedical_temp(query) {
  return request({
    url: '/system/medical_temp/list',
    method: 'get',
    params: query
  })
}

// 查询病例模板详细
export function getMedical_temp(id) {
  return request({
    url: '/system/medical_temp/' + id,
    method: 'get'
  })
}

// 新增病例模板
export function addMedical_temp(data) {
  return request({
    url: '/system/medical_temp',
    method: 'post',
    data: data
  })
}

// 修改病例模板
export function updateMedical_temp(data) {
  return request({
    url: '/system/medical_temp',
    method: 'put',
    data: data
  })
}

// 删除病例模板
export function delMedical_temp(id) {
  return request({
    url: '/system/medical_temp/' + id,
    method: 'delete'
  })
}
//删除病例信息
export function delMedical_info(id) {
  return request({
    url: '/system/medical_history/delete/' + id,
    method: 'delete'
  })
}

//新增病例表信息
export function addMedical_info(data) {
  return request({
    url: '/system/medical_history/insert',
    method: 'post',
    data: data
  })
}
